<?php
// require ** $curr ** to be set

$ext = ' class="active"';

$home_ext = "";
$about_ext = "";
$profile_ext = "";
$stats_ext = "";
$contact_ext = "";

switch ($curr) 
{
	case "home":
		$home_ext = $ext;
		break;
	case "about":
		$about_ext = $ext;
		break;
	case "profile":
		$profile_ext = $ext;
		break;
	case "stats":
		$stats_ext = $ext;
		break;
	case "contact":
		$contact_ext = $ext;
		break;     
        case "none":
            break;
}
?>
</head>
<body>
<div id="header" class="container">
	<div id="logo">
			<h1><a href="index.php">Browserage</a></h1>
	</div>
	<div id="menu">
		<ul>
			<li <?php echo $home_ext ?>><a href="index.php" accesskey="1" title="">Home</a></li>
			<li <?php echo $about_ext ?>><a href="about.php" accesskey="2" title="">About</a></li>
			<li <?php echo $profile_ext ?>><a href="profile.php" accesskey="2" title="">My Profile</a></li>
			<li <?php echo $stats_ext ?>><a href="stats.php" accesskey="3" title="">Stats</a></li>
			<li <?php echo $contact_ext ?>><a href="contact.php" accesskey="4" title="">Contact</a></li>
		</ul>
	</div>
</div>